//
//  UIView+circular.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/4/16.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "UIView+circular.h"
#import "config.h"


@implementation UIView (circular)
-(void)viewToCircular;
{
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = 6.0;
    self.layer.borderWidth = 1.0;
    
    self.layer.borderColor = UIColorFromRGB(0xe3e3e3).CGColor;
}

-(void)imgViewToCircular:(UIView *)img;
{
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = img.frame.size.width/2;
}

-(void)viewmakeline;
{
    self.layer.borderWidth = 1.0;
    self.layer.borderColor = UIColorFromRGB(0xe3e3e3).CGColor;
}
@end
